package com.tql.view.mapper;

import com.tql.view.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserMapper {
    public User getUserByAccount(@Param("account")String account);
    public void updateInfomation(Map<String,Object> params);
    public void userRegist(Map<String,Object> params);
    public void addCollect(Map<String,Object> params);
    public List<User> selectAllUser(Integer page, Integer size);
    public void deleteUser(@Param("account")String account);
    public List<User> getAllUser();
    //签到
    public void updateReward(@Param("account") String account);
    //查看积分
    public int getReward(@Param("account") String account);
    //用户设置网站背景
    public void updateBackGround(@Param("background")String background,@Param("account")String account);
    //获取用户背景
    public String getBackCround1(@Param("account")String account);
    //下载权限
    public void updateReward1(@Param("account") String account);
    //会员充值
    public void updateReward2(@Param("account") String account,@Param("moneny") int moneny);
}
